package com.zzxy.spring5.service.impl;

import com.zzxy.spring5.service.IUserService;
import org.apache.ibatis.annotations.Delete;
import org.springframework.stereotype.Component;

/*
<bean  id="service1" class="com.....userserviceimpl/>"
*/
@Component

public class UserServicelmpl implements IUserService {
    private String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public void addUser() {
        System.out.println("add user success..." + username);
    }

    @Override
    public void deleteUserById(int id) {
        System.out.println("delete id : " + username);
    }
}


